package com.magicalcoder.pigeon.mysql.manager;


import com.magicalcoder.pigeon.mysql.manager.dto.JdbcProperties;

/**
 * Created by hzhedongyu on 2017/6/6.
 */
public class ConnectionManager {

    private Pool pool;

    public ConnectionManager(JdbcProperties jdbcProperties){
        pool = new PoolImpl(jdbcProperties);
    }

    public DbConnection acquireCon(){
        return pool.getConnection();
    }

}
